import './assets/main.css'
import 'element-plus/dist/index.css'
import ElementPlus, { ElMenu, ElMenuItem, ElSubMenu } from 'element-plus'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import { useCookies } from 'vue3-cookies'
import store from '@/store/index.js'
const app = createApp(App)
app.use(createPinia())
app.use(ElementPlus)
app.use(router)
app.config.globalProperties.$axios = axios
const { cookies } = useCookies()
app.config.globalProperties.$cookies = cookies
app.use(store)
app.mount('#app')
app.component('el-submenu', ElSubMenu);
app.component('el-menu', ElMenu);
app.component('el-menu-item', ElMenuItem);
createApp.prototype.$http = axios;

